<?php

namespace App\Vilidate\playlet;

/**
 * user控制器下的验证规则类
 */
class PlayletBindController
{
    public $index = ['rule'=>[], 'msg'=>[]];

    public $delete = ['rule'=>[], 'msg'=>[]];

    public $create = [
        'rule'=>[
            'playlet_id' => 'required|integer',
            'amount' => 'required',
        ],
        'msg'=>[
            'playlet_id.required' => '小程序不能为空',
            'playlet_id.integer' => '小程序不能为整数',
            'amount.required' => '比例不能为空',
        ]
    ];

    public $update = [
        'rule'=>[
            'playlet_id' => 'required|integer',
            'amount' => 'required',
        ],
        'msg'=>[
            'playlet_id.required' => '小程序不能为空',
            'playlet_id.integer' => '小程序不能为整数',
            'amount.required' => '比例不能为空',
        ]
    ];
}